package com.p01_clone;


import cn.hutool.core.clone.CloneRuntimeException;
import cn.hutool.core.clone.Cloneable;

/**
 * hutool封装后的克隆接口
 */
public class Cat_01 implements Cloneable<Cat_01> {
    private String name = "cat";
    private int age=2;
    @Override
    public Cat_01 clone() {
        try {
            return (Cat_01)super.clone();
        } catch (CloneNotSupportedException e) {
            throw new CloneRuntimeException(e);
        }
    }
}
